<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*为body添加背景图片*/
        body{
            background: url("../img/bg.png");
        }

        /*中间样式：背景色-白色、宽度400像素、文本水平居中、外边距自动*/
        .a{
            background-color: white;
            width: 400px;
            text-align: center;
            margin: auto;
        }
    </style>
</head>
<body>
<div class="a">
    注册详情
    <hr>
    <form action="#" method="get" autocomplete="off">
        <label for="username"> 用户名:</label>
        <input type="text"name="username" id="username"><br>
        <label for="passworld"> 密码:</label>
        <input type="password"name="passworld" id="passworld"><br>
        <label for="email"> 邮箱:</label>
        <input type="email"name="email" id="email"><br>
        <label for="tel"> 手机号:</label>
        <input type="tel"name="tel" id="tel">
        <hr>
        <label for="sex">性别:</label>
        <input type="radio" name="sex" value="男" id="sex">男
        <input type="radio" name="sex" value="女" >女
        <br>
        <label for="hobby">爱好:</label>
        <input type="checkbox" name="hobby" value="打篮球" id="hobby">蓝球
        <input type="checkbox" name="hobby" value="足球" >足球
        <input type="checkbox" name="hobby" value="游泳" >游泳
        <br>
        <label for="date">出生日期</label>
        <input type="date" id="date" name="birthday"><br>
        <label for="city">所在城市</label>
        <select name="city" id="city">
            <option value="">--请选择--</option>
            <option value="上海">上海</option>
            <option value="合肥">合肥</option>
            <option value="武汉">武汉</option>
        </select>
        <br>
        <label for="textarea">个性签名</label>
        <textarea name="textarea"  cols="30" rows="8" id="textarea"></textarea><br>
       <!-- <input type="submit" value="提交">
        <input type="reset" value="重置">-->
        <button name="submit" type="submit">提交</button>
        <button name="reset" type="reset">重置1</button>
    </form>

</div>
</body>
</html>